home *** CD-ROM | disk | FTP | other *** search
- From: "Nathan Myers, http://www.cantrip.org/" <ncm@cantrip.org>
- Message-ID: <3154A368.4FE8E787@cantrip.org>
- X-Original-Date: Sat, 23 Mar 1996 17:20:40 -0800
- Path: in1.uu.net!bounce-back
- Date: 24 Mar 96 04:43:38 GMT
- Approved: fjh@cs.mu.oz.au
- Newsgroups: comp.std.c++
- Subject: Re: dynamic_cast<const B&>
- Organization: The Cantrip Cooperative
- References: <4isb5a$ct4$1@mhafc.production.compuserve.com>
- X-Mailer: Mozilla 2.0 (X11; I; Linux 1.2.13 i386)
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBFAgUBMVTTFeEDnX0m9pzZAQGk1QF/YAshxgDH84SfOQmvmXtpAyLH7UTqPCvw
- Vr9gI8ZFDe5nzjGUJjdWz+It+bwk0Yw9
- =wgfo
-
- Martin E. Nordberg III wrote:
- >
- > I just installed MS VC++ 4.1. The following code (strained
- > from my larger code) now fails to compile:
- >
- > class A { virtual ~A() };
- > class B : public A {};
- >
- > void test( const A& a )
- > { const B& b = dynamic_cast<const B&>( a ); }
- >
- > Did Microsoft goof ... ?
-
- "Heh heh heh."
-
- But seriously... new implementations from the Draft are bound to
- have mistakes. What's important is whether they get fixed after
- attention is called to them. I'll be interested to see whether
- the next release still has this bug.
-
- Nathan Myers
- ncm@cantrip.org http://www.cantrip.org/
- ---
- [ comp.std.c++ is moderated. To submit articles: try just posting with ]
- [ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
- [ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
- [ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
- [ Comments? mailto:std-c++-request@ncar.ucar.edu ]
-